package com.vimi8.ebb.auth.configuration;

import com.vimi8.ebb.auth.model.Error;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.MultiValueMap;

/**
 * Created by xuybin on 2016/9/10.
 * 此处的T代表正常返回时的对象,此类保留作为签名指示
 */
public class HttpResponseEntity<T> extends ResponseEntity<Object> {

    public HttpResponseEntity(HttpStatus statusCode) {
        super(statusCode);
    }

    public HttpResponseEntity(MultiValueMap<String, String> headers, HttpStatus statusCode) {
        super(headers, statusCode);
    }

    public HttpResponseEntity(T body, HttpStatus statusCode) {
        super(body, statusCode);
    }

    public HttpResponseEntity(T body, MultiValueMap<String, String> headers, HttpStatus statusCode) {
        super(body, headers, statusCode);
    }

    public HttpResponseEntity(Error error, HttpStatus statusCode) {
        super(error, statusCode);
    }

    public HttpResponseEntity(Error error, MultiValueMap<String, String> headers, HttpStatus statusCode) {
        super(error, headers, statusCode);
    }
}
